import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex)
/**
 * DATE_YEAR   获取当前年份
 * DATE_MONTH  获取当前月份
 * DATE_DAY    获取当前日
 * priceList   带有库存和价格的日历数组。4月29-30，5月1-5日
 */
const store = new Vuex.Store({
	state: {
		DATE_YEAR : new Date().getFullYear(),
		DATE_MONTH : new Date().getMonth() + 1,
		DATE_DAY : new Date().getDate(),
		priceList: [
			{
				copperPrice: 11,
				dateline: 1588118400,
				goldPrice: null,
				marketPrice: 111,
				packageId: 811,
				settlementPrice: 211,
				silverPrice: null,
				soldCount: 0,
				state: 0,
				stockCount: 200,
				stockId: 53918,
				updateTime: 1586398586,
				updater: 169,
				vipPrice: null
			},
			{
				copperPrice: 11,
				dateline: 1588204800,
				goldPrice: null,
				marketPrice: 111,
				packageId: 811,
				settlementPrice: 211,
				silverPrice: null,
				soldCount: 0,
				state: 0,
				stockCount: 200,
				stockId: 53918,
				updateTime: 1586398586,
				updater: 169,
				vipPrice: null
			},
			{
				copperPrice: 122,
				dateline: 1588291200,
				goldPrice: null,
				marketPrice: 133,
				packageId: 811,
				settlementPrice: 121,
				silverPrice: null,
				soldCount: 0,
				state: 0,
				stockCount: 200,
				stockId: 54118,
				updateTime: 1588066186,
				updater: 169,
				vipPrice: null
			},
			{
				copperPrice: 122,
				dateline: 1588377600,
				goldPrice: null,
				marketPrice: 133,
				packageId: 811,
				settlementPrice: 121,
				silverPrice: null,
				soldCount: 0,
				state: 0,
				stockCount: 200,
				stockId: 54118,
				updateTime: 1588066186,
				updater: 169,
				vipPrice: null
			},
			{
				copperPrice: 122,
				dateline: 1588464000,
				goldPrice: null,
				marketPrice: 133,
				packageId: 811,
				settlementPrice: 121,
				silverPrice: null,
				soldCount: 0,
				state: 0,
				stockCount: 200,
				stockId: 54118,
				updateTime: 1588066186,
				updater: 169,
				vipPrice: null
			},
			{
				copperPrice: 122,
				dateline: 1588550400,
				goldPrice: null,
				marketPrice: 133,
				packageId: 811,
				settlementPrice: 121,
				silverPrice: null,
				soldCount: 0,
				state: 0,
				stockCount: 200,
				stockId: 54118,
				updateTime: 1588066186,
				updater: 169,
				vipPrice: null
			},
			{
				copperPrice: 122,
				dateline: 1588636800,
				goldPrice: null,
				marketPrice: 133,
				packageId: 811,
				settlementPrice: 121,
				silverPrice: null,
				soldCount: 0,
				state: 0,
				stockCount: 200,
				stockId: 54118,
				updateTime: 1588066186,
				updater: 169,
				vipPrice: null
			}
		]
	}
})
export default store